﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class VIPNDragView : MonoBehaviour {

    private VIPScrollView vipScrollView;
    public void SetScrollView(VIPScrollView view)
    {
        vipScrollView = view;
    }

    void OnEnhanceViewDrag(Vector2 delta)
    {
        if (vipScrollView != null)
            vipScrollView.OnDragEnhanceViewMove(delta);
    }

    void OnEnhaneViewDragEnd()
    {
        if (vipScrollView != null)
            vipScrollView.OnDragEnhanceViewEnd();
    }

}
